//
//  ShellExchangeViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2020/2/15.
//  Copyright © 2020 VV. All rights reserved.
//

#import "ShellExchangeViewController.h"
#import "ShellExchangeViewModel.h"
#import "ShellExchangeView.h"

@interface ShellExchangeViewController ()

@property (nonatomic,strong) ShellExchangeView *exchangeView;

@property (nonatomic,strong) ShellExchangeViewModel *viewModel;

@end

@implementation ShellExchangeViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = LZLocalizedString(@"闪兑");
    
    [self setupUI];
}
#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.exchangeView];
    [self.exchangeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellExchangeView *)exchangeView{
    
    if(!_exchangeView){
        _exchangeView = [[ShellExchangeView alloc] initViewModel:self.viewModel];
    }
    return _exchangeView;
}

- (ShellExchangeViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellExchangeViewModel alloc] init];
        _viewModel.wallertModel = self.wallertModel;
    }
    return _viewModel;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
